package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 物料数据对象 wms_material__data
 * 
 * @author ruoyi
 * @date 2024-11-08
 */
public class WmsMaterialData extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 物料id 主键 */
    private Long materialId;

    /** 物料编码 */
    @Excel(name = "物料编码")
    private String materialCode;

    /** 物料名称 */
    @Excel(name = "物料名称")
    private String materialName;

    /** 物料分类 */
    @Excel(name = "物料分类")
    private Long typeId;

    /** 基本单位 */
    @Excel(name = "基本单位")
    private String unit;

    /** 物料毛重 */
    @Excel(name = "物料毛重")
    private Long materialWeight;

    /** 安全库存 */
    @Excel(name = "安全库存")
    private String inventory;

    public void setMaterialId(Long materialId) 
    {
        this.materialId = materialId;
    }

    public Long getMaterialId() 
    {
        return materialId;
    }
    public void setMaterialCode(String materialCode) 
    {
        this.materialCode = materialCode;
    }

    public String getMaterialCode() 
    {
        return materialCode;
    }
    public void setMaterialName(String materialName) 
    {
        this.materialName = materialName;
    }

    public String getMaterialName() 
    {
        return materialName;
    }
    public void setTypeId(Long typeId) 
    {
        this.typeId = typeId;
    }

    public Long getTypeId() 
    {
        return typeId;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setMaterialWeight(Long materialWeight) 
    {
        this.materialWeight = materialWeight;
    }

    public Long getMaterialWeight() 
    {
        return materialWeight;
    }
    public void setInventory(String inventory) 
    {
        this.inventory = inventory;
    }

    public String getInventory() 
    {
        return inventory;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("materialId", getMaterialId())
            .append("materialCode", getMaterialCode())
            .append("materialName", getMaterialName())
            .append("typeId", getTypeId())
            .append("unit", getUnit())
            .append("materialWeight", getMaterialWeight())
            .append("inventory", getInventory())
            .toString();
    }
}
